import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:osg/controllers/custom_widget.dart';

class MallAddress extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
           appBar: AppBar(
            backgroundColor: Color(0xffffffff),
            title: Text('收货地址'),
            centerTitle: true
          ),
          body: Column(
            children: [
              isdata(),
              Expanded(child: 
              ListView(
                padding: EdgeInsets.symmetric(horizontal: 15),
                children: [
                  for(var item in [])
                  Container(
                    padding: EdgeInsets.all(15),
                    decoration: BoxDecoration(
                      color: Color(0XFFF8F9FD),
                      borderRadius: BorderRadius.circular(10)
                    ),
                    child: Column(
                      crossAxisAlignment: CrossAxisAlignment.start,
                      children: [
                        Text('张小三    13478945612',style: TextStyle(fontSize: 14,color: Color(0XFF0F172B),fontWeight: FontWeight.bold)),
                        SizedBox(height: 5,),
                        Text('广东省 惠州市 惠城区 江北街道啊可接受的反馈答 复1路234932栋奥斯卡来得及付款801',style: TextStyle(fontSize: 14,color: Color(0XFF999999))),
                        SizedBox(height: 15,),
                      
                        Row(
                          children: [
                             Text('默认地址',style: TextStyle(fontSize: 12,color: Color(0XFF1F0584))),
                             Expanded(child: SizedBox()),
                             Image.asset('static/del.png',width: 15,fit: BoxFit.fitWidth,),
                             Text('删除',style: TextStyle(fontSize: 12,color: Color(0XFF999999))),
                              SizedBox(width: 30,),
                             Image.asset('static/edit.png',width: 12,fit: BoxFit.fitWidth,),
                             Text('编辑',style: TextStyle(fontSize: 12,color: Color(0XFF999999))),
                          ],
                        )
                      ],
                    ),
                  )
                ],
              )
              ),
              GestureDetector(
                onTap: ()=>{
                  Get.toNamed('/web_tabs/shopping/mall_up_addrerss')
                },
                child:  Container(
                margin: EdgeInsets.symmetric(horizontal: 15,vertical: 10),
                height: 50,
                alignment: Alignment.center,
                decoration: BoxDecoration(
                  color: Color(0XFF0F172B),
                  borderRadius: BorderRadius.circular(50)
                ),
                child: Text('新增收货地址',style: TextStyle(fontSize: 18,color: Color(0XFFFFFFFF))),
              ),
              )
             
            ],
          ),
    );
  }
}